package cn.edu.zafu.bigdata.x.wgj.d;

public abstract class shape {
    public abstract double area();
    public abstract double perimeter();
    public final void display(){
        System.out.println("Shape type: "+this.getClass().getSimpleName()+
                            ",Area: "+area()+
                            ",Perimeter: "+perimeter());
    }
}


